package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_gateway
 */
@TableName(value ="inte_gateway")
public class InteGateway implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 网关名称
     */
    private String gatewayname;

    /**
     * 网关id
     */
    private String gatewayid;

    /**
     * mqtt密码
     */
    private String mqttpassword;

    /**
     * 网关状态
     */
    private Integer gatewaystate;

    /**
     * 创建时间
     */
    private String createtime;

    /**
     * 介绍
     */
    private String introduce;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 网关名称
     */
    public String getGatewayname() {
        return gatewayname;
    }

    /**
     * 网关名称
     */
    public void setGatewayname(String gatewayname) {
        this.gatewayname = gatewayname;
    }

    /**
     * 网关id
     */
    public String getGatewayid() {
        return gatewayid;
    }

    /**
     * 网关id
     */
    public void setGatewayid(String gatewayid) {
        this.gatewayid = gatewayid;
    }

    /**
     * mqtt密码
     */
    public String getMqttpassword() {
        return mqttpassword;
    }

    /**
     * mqtt密码
     */
    public void setMqttpassword(String mqttpassword) {
        this.mqttpassword = mqttpassword;
    }

    /**
     * 网关状态
     */
    public Integer getGatewaystate() {
        return gatewaystate;
    }

    /**
     * 网关状态
     */
    public void setGatewaystate(Integer gatewaystate) {
        this.gatewaystate = gatewaystate;
    }

    /**
     * 创建时间
     */
    public String getCreatetime() {
        return createtime;
    }

    /**
     * 创建时间
     */
    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    /**
     * 介绍
     */
    public String getIntroduce() {
        return introduce;
    }

    /**
     * 介绍
     */
    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteGateway other = (InteGateway) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getGatewayname() == null ? other.getGatewayname() == null : this.getGatewayname().equals(other.getGatewayname()))
            && (this.getGatewayid() == null ? other.getGatewayid() == null : this.getGatewayid().equals(other.getGatewayid()))
            && (this.getMqttpassword() == null ? other.getMqttpassword() == null : this.getMqttpassword().equals(other.getMqttpassword()))
            && (this.getGatewaystate() == null ? other.getGatewaystate() == null : this.getGatewaystate().equals(other.getGatewaystate()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getIntroduce() == null ? other.getIntroduce() == null : this.getIntroduce().equals(other.getIntroduce()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getGatewayname() == null) ? 0 : getGatewayname().hashCode());
        result = prime * result + ((getGatewayid() == null) ? 0 : getGatewayid().hashCode());
        result = prime * result + ((getMqttpassword() == null) ? 0 : getMqttpassword().hashCode());
        result = prime * result + ((getGatewaystate() == null) ? 0 : getGatewaystate().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getIntroduce() == null) ? 0 : getIntroduce().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gatewayname=").append(gatewayname);
        sb.append(", gatewayid=").append(gatewayid);
        sb.append(", mqttpassword=").append(mqttpassword);
        sb.append(", gatewaystate=").append(gatewaystate);
        sb.append(", createtime=").append(createtime);
        sb.append(", introduce=").append(introduce);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}